﻿CC = gcc
CFLAGS = -Wall -O3
LFLAGS = -lpthread

all : executive

executive: executive.o task_ok.o
	${CC} -o executive executive.o task_ok.o ${LFLAGS}

task_ok: task_ok.o 
	${CC} -o task_ok task_ok.o ${LFLAGS}

executive.o: executive.c task.h
	${CC} ${CFLAGS} -c executive.c task.h ${LFLAGS}

task_ok.o: task_ok.c task.h
	${CC} ${CFLAGS} -c task_ok.c task.h ${LFLAGS}

clean :
	rm -f *.o *~ executive task_ok


